package com.itbaizhan.zookeeper.rmi.server;
import com.itbaizhan.zookeeper.rmi.common.HelloService;
import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloServiceImpl extends UnicastRemoteObject implements HelloService {

    //添加构造方法
    protected HelloServiceImpl() throws RemoteException {
    }

    @Override
    public String sayHello(String name) throws RemoteException {
//        return "hello" + name;
        return String.format("Hello %s !" ,name);
    }

}
